/*
 * Copyright (c) 2020, chenshuai (cs4380@163.com).
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * https://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.cs.springcloud.base.common.constant;

/**
 * RedisConstant redis常量类.
 *
 * @author cs
 * @version 1.0
 * @date 2019-10-12 19:35
 */
public class RedisKeysConstant {
    /**
     * 用户token集
     */
    public static final String USER_TOKENS = "user:tokens:";

    /**
     * 用户token前缀
     */
    public static final String USER_TOKENS_ACCESS = "user:tokens:access:";

    /**
     * 角色按钮权限。
     * 网关url匹配使用
     */
    public static final String ROLES_BUTTON_AUTH_KEY = "roles:button:auth";

    /**
     * 角色菜单按钮权限。
     * 用户获取动态菜单使用
     */
    public static final String ROLES_AUTH_KEY = "role:auth";


    /**
     * 超级管理员角色。
     */
    public static final String ADMIN_ROLES_AUTH_KEY = "admin";
}